//
//  BaseViewController.swift
//  Bull
//
//  Created by zou shigang on 15/11/13.
//  Copyright © 2015年 Koli. All rights reserved.
//

import UIKit

let kMAIN_SIZE = UIScreen.mainScreen().bounds

func RGB(r:CGFloat, g:CGFloat, b:CGFloat, a:CGFloat) ->UIColor {
    return UIColor(red: r/250.0, green: g/250.0, blue: b/250.0, alpha: a)
}

class BaseViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */
    //base funcation
//    func RGBA (r:CGFloat, g:CGFloat, b:CGFloat, a:CGFloat) {
//        let theColor : UIColor;(red: r, green: g, blue: b, alpha: a)
//        return 0.1
//    }

}
